home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
catn
/
puts.n
< prev
next >
Wrap
Text File
|
1994-09-20
|
1KB
|
67 lines
puts(n) Tcl Built-In Commands
_________________________________________________________________
NAME
puts - Write to a file
SYNOPSIS
puts ?-nonewline? ?_f_i_l_e_I_d? _s_t_r_i_n_g
_________________________________________________________________
DESCRIPTION
Writes the characters given by _s_t_r_i_n_g to the file given by
_f_i_l_e_I_d. _F_i_l_e_I_d must have been the return value from a pre-
vious call to open, or it may be stdout or stderr to refer
to one of the standard I/O channels; it must refer to a file
that was opened for writing. If no _f_i_l_e_I_d is specified then
it defaults to stdout. Puts normally outputs a newline
character after _s_t_r_i_n_g, but this feature may be suppressed
by specifying the -nonewline switch. Output to files is
buffered internally by Tcl; the flush command may be used to
force buffered characters to be output.
KEYWORDS
file, newline, output, write
Tcl 1